package com.lxw.api.cms;

import com.lxw.framework.domain.cms.CmsPage;
import com.lxw.framework.domain.cms.request.QueryPageRequest;
import com.lxw.framework.domain.cms.response.CmsPageResult;
import com.lxw.framework.model.response.QueryResponseResult;
import com.lxw.framework.model.response.QueryResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "/cmsPage", description = "cms页面管理接口，提供页面的增、删、改、查")
public interface CmsPageControllerApi {
    //查询cms页面信息
    @ApiOperation(value = "分页条件查询", response = QueryResponseResult.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page", value = "页码", required = true, paramType = "query", dataType = "int"),
            @ApiImplicitParam(name = "size", value = "每页记录数", required = true, paramType = "query", dataType = "int")
    })
    public QueryResponseResult findList(Integer page, Integer pageSize, QueryPageRequest qpr);


    @ApiOperation("添加页面")
    public CmsPageResult add(CmsPage cmsPage);

    @ApiOperation(value = "根据id查询")
    public CmsPageResult fiandById(String id);
    @ApiOperation(value = "修改页面")
    public CmsPageResult edit(String id,CmsPage cmsPage);
    @ApiOperation(value = "删除页面")
    public CmsPageResult deleteById(String id);
    @ApiOperation(value = "发布页面")
    public CmsPageResult pagePost(String id);
}
